str_a =  '  abc def gh     '
str_none = ''
print(str_a)
print(str_a.split())
for i in str_a.split():
    str_none += i
print(str_none[::-1])
    
    



